package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sun.org.apache.xpath.internal.operations.Bool;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Setter
@Getter
public class PayRoll {
    private Long id;

    //月份
    @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM")
    private Date month;

    //工资
    private BigDecimal salary;

    //工作天数
    private Integer workDay;

    private Integer afterNumber;

    private Integer beforeNumber;

    private Integer upNumber;

    //总工资
    private BigDecimal nowSalary;

    //结算时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date payTime;

    private Boolean state = false;

    //员工姓名
    private String employeeName;
}